package mesweb.mesweb.enums;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @Description: TODO
 * @Author niufw
 * @Date 2021/11/26 10:32
 * @Version 1.0
 */

public enum enumScheduleState implements IEnum<Integer> {

    UNSCHEDULE(0,"未排产"),
    FORWARD_SCHEDULED(1,"正排已排产"),
    FORMARD_EXCEEDED(2,"正排排产超期"),
    BACKWARD_SCHEDULED(3,"倒排已排产"),
    BACKMARD_EXCEEDED(4,"倒排排产超期无意义，排产时间都为空");

    Integer code;
    String msg;

    public void setValue(Integer code) {
        this.code = code;
    }

    enumScheduleState(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }}
